package com.jic.manager.mapper;

import java.lang.Long;
import java.util.List;

import com.jic.manager.entity.SysRole;
import com.jic.manager.request.SysRoleRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 角色信息表
 * @author : 
 * @email : 
 * @since : 2020-02-26 09:39:06
 * @version : v1.0.0
 */
@Mapper
public interface  SysRoleMapper {

    long insert(SysRole sysRole);

    long delete(Long id);

    long update(SysRole sysRole);

    SysRole queryByPrimaryKey(Long id);

    List<SysRole> query(@Param("sysRole") SysRole sysRole);

    List<SysRole> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("sysRole") SysRole sysRole);

    long queryPageCount( @Param("sysRole") SysRole sysRole);

    List<SysRole> queryByDeptIds(@Param("deptIds") String deptIds);

    long updateStatus(SysRole sysRole);

    long batchUpdateList(@Param("sysRoleRequest") SysRoleRequest sysRoleRequest);

}